package gxb.test04;

import java.util.Scanner;

public class d2 {
    public static void main(String[] args) {
        double side1,side2;
        double hypotenuse;
        Scanner sc = new Scanner(System.in);
        System.out.println("Please enter the lengths of the two sides of "+
                "a right triangle");

        side1 = sc.nextDouble();//
        side2 = sc.nextDouble();//

        hypotenuse = Math.sqrt(Math.pow(side1, 2) + Math.pow(side2, 2));//

        System.out.println("Length of the hypotenuse "+ hypotenuse);
    }



}
